package com.gh.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.gh.api.ApiHouseResourcesService;
import com.gh.pojo.HouseResources;
import org.springframework.stereotype.Service;

/**
 * @Author Eric
 * @Date 2021/7/13 22:44
 * @Version 1.0
 */
@Service
public class HouseResourcesService {
    @Reference(version = "1.0.0")
    private ApiHouseResourcesService apiHouseResourcesService;

    public boolean save(HouseResources houseResources){
        int result = this.apiHouseResourcesService.saveHouseResources(houseResources);
        return result == 1;
    }
}
